<template>
  <div>
    <h3>MyCount组件</h3>
    <p class="count">{{ count }}</p>
    <button @click="addFn">点我</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: 0
    }
  },
  methods: {
    addFn() {
      this.count++
    }
  }
}
</script>

<style>
</style>